<div id="content">
    <div id="game-title"><?php echo dl_lang_general("main.game_title"); ?></div>
    <div id="game-subtitle"><?php echo dl_lang_general("main.game_subtitle"); ?></div>
    <div id="middle">
        <div id="middle-top"></div>
        <div id="middle-text">
            <?php
            if (isset($_GET["sekce"]) && $_GET["sekce"] != "")
            {
                switch ($_GET["sekce"])
                {
                    case "createAccount": include "section/createAccount/index.php"; break;
                    case "faq":           include "section/faq/index.php"; break;
                    default:              include "frontPage.php";
                }
            }
            else
            {
                include "frontPage.php";
            }
        ?>
        </div>
        <div id="middle-bottom"></div>
    </div>
    
    <div id="menu">
        <div id="menu-top"></div>
        <div class="menu-middle">
            <?php
            if (!isset($data["formLogin"])) $data["formLogin"] = array(); 
            ?>
            <div class="title"><?php echo dl_lang_general("main.login"); ?></div>
            <?php
            if (isset($data["msg-login-error"]) && $data["msg-login-error"] != "")
            {
                echo '<div id="login-error">'.$data["msg-login-error"].'</div>';
                unset($data["msg-login-error"]);
            }
            ?>
            <form method='post' action='' name='loginForm'>
                <input type='hidden' name='xfunction' value='xLogin'>
                <div class='form-label'><?php echo dl_lang_general("form.mail"); ?></div><?php echo form_text("mail", $data["formLogin"], 25); ?>
                <div class='form-label'><?php echo dl_lang_general("form.password"); ?></div><?php echo form_password("password", "", 25); ?>
                <center><button onclick='loginForm.submit();' class="login-button"><?php echo dl_lang_general("form.login"); ?></button>
            </form>
            <br />
            <?php echo html_href("createAccount", dl_lang_general("main.create_account")); ?>
            </center>
        </div>
        <div class="menu-connection"></div>
        <div class="menu-middle">
            <div class="title"><?php echo dl_lang_general("menu.menu"); ?></div>
            <?php
                echo html_href("", dl_lang_general("menu.home")) . "<br />" .
                     html_href("faq", dl_lang_general("menu.faq"));
            ?>
        </div>
        <div id="menu-bottom"></div>
    </div>
    
    
</div>